home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6228 < prev    next >
Encoding:
Text File  |  1996-08-05  |  822 b   |  36 lines

  1. Path: express2.ior.com!usenet
  2. From: clin@xn-tech.com
  3. Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.lang.c++
  4. Subject: Unresolved external "_printf" in Visual C++ 1.52
  5. Date: 10 Feb 1996 21:38:03 GMT
  6. Organization: Internet On-Ramp, Inc.
  7. Message-ID: <4fj37r$l54@express2.ior.com>
  8. Reply-To: clin@xn-tech.com
  9. NNTP-Posting-Host: cs3-11.ior.com
  10. X-Newsreader: IBM NewsReader/2 v1.09
  11.  
  12. Hello there,
  13.  
  14. This may be a dumb question, but please help.
  15.  
  16. I pasted some old, tested C codes to my C++ program. I got the following linker error
  17.  
  18. error L2029: '_printf' : unresolved external
  19.  
  20. In my program, I have include these libraries:
  21.  
  22. extern "C" {
  23. #include <dos.h>
  24. #include <conio.h>
  25. #include <ctype.h>
  26. #include <stdlib.h>
  27. #include <string.h>
  28. #include <stdio.h>
  29. #include <bios.h>  
  30. }
  31.  
  32. I will appreciate your help.
  33.  
  34. Charles Lin
  35.  
  36.